An immune response (chiefly against viral or fungal invasions or transplanted tissue) that involves T cells